
import Request from '../util/request'

export default class Home extends Request {

  getGroup(data) {
    return this.request({
      url: '/h5/uni/home/group',
      data
    })
  }

  // 首页统一请求
  getHome(data) {
    return this.request({
      url: '/h5/uni/home/index',
      data
    })
  }

  // 分类商品
  getCateProduct(data) {
    return this.request({
      url: '/h5/uni/home/home-product',
      data
    })
  }

  getCateProductGroup(data) {
    return this.request({
      url: '/h5/uni/home/home-product-group',
      data
    })
  }

  // 搜索
  search(data) {
    return this.request({
      url: '/h5/search/search',
      data
    })
  }

  getTabbar(data) {
    return this.request({
      url: '/h5/uni/home/tabbar',
      data
    })
  }


}
